import type IForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
import VueLoaderPlugin from 'vue-loader/dist/plugin';
import webpack from 'webpack'
import path from 'path'

// eslint-disable-next-line @typescript-eslint/no-var-requires
/* iori.king 为修复在vscode内断掉调试而暂时注释*/
// const ForkTsCheckerWebpackPlugin: typeof IForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

export const plugins = [
  // new ForkTsCheckerWebpackPlugin({
  //   logger: 'webpack-infrastructure',
  // }),
  new VueLoaderPlugin(),
  new webpack.ProvidePlugin({
    $: "jquery",
    jQuery: "jquery"
  })
];
